<template>
	<view>
		<uni-card v-for="temp in secondList" 
			@tap="getMyList()">
			<text class="uni-body">学号：{{temp.userName}}</text>
			<br>
			<text class="uni-body">昵称：{{temp.nickName}}</text>
			<br>
			<text class="uni-body">部门：{{temp.sysDept.deptName}}</text>
			<br>
			<text class="uni-body">二课得分：{{temp.gxsScore}}</text>
		</uni-card>
	</view>
</template>


<script>
	import { MyList } from '@/api/gxs/second.js'
	export default {
		data() {
			return {
				secondList: [] //列表
			}
		},
		onLoad() {
			this.getMyList()
		},
		methods: {
			//获取活动列表
			getMyList() {
				MyList().then(response => {
					this.secondList = response.rows;
				});
			},
		}
	}
</script>

<style lang="scss">
    uni-card {
        width: 48%;
        border: 1px solid #ccc;
        border-radius: 5px;
        padding: 10px;
        margin-bottom: 10px;
    }
    .uni-body {
        font-size: 16px;
        line-height: 1.5;
    }
</style>